package com.lhuc.controller;

import com.lhuc.service.iml.QueryGrantTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lhucstart
 * @create 2022-01-21 22:51
 */
@RestController
public class GrantTypeController {

    @Autowired
    private QueryGrantTypeService queryGrantTypeService;

    @PostMapping("/grantType")
    public Map<String, Object> test(String resourceName) {
        Map<String, Object> map = new HashMap<>();
        String result = queryGrantTypeService.getResult(resourceName);
        map.put("data", result);
        return map;
    }
}

